package com.hyacinth.lotterysystem.common.constant;

public class Constants {
    /**
     * Redis中“邮件验证码”的Key前缀
     * 最终Key格式：user:email:code:{用户邮箱}
     */
    public static final String REDIS_KEY_EMAIL_CODE_PREFIX = "user:email:code:";

    /**
     * 验证码有效时间
     */
    public static final Long VALID_TIME = 300L;

    /**
     * 缓存活动信息的key前缀
     */
    public static final String REDIS_KEY_ACTIVITY_PREFIX = "activityId:";

    /**
     * 缓存中奖记录: 活动维度
     */
    public static final String REDIS_KEY_DRAW_ACTIVITY_INFO = "draw:activity:info:";

    /**
     * 缓存中奖记录: 奖品维度
     */
    public static final String REDIS_KEY_DRAW_PRIZE_INFO = "draw:prize:info:";

    /**
     * 活动有效时间
     */
    public static final Long ACTIVITY_TIME_OUT = 3 * 60 * 60 * 24L;

    /**
     * 活动结果有效时间
     */
    public static final Long DRAW_RESULT_TIME_OUT = 3 * 60 * 60 * 24L;
}
